
//需求：
//异步3秒才能返回一串文本“helloPromise!”
//指定一个函数，让它去异步执行，完了就输出“helloPromise !Promise is over!”
//

var helloPromise = new Promise((resolve,reject)=>{
	setTimeout(()=>{resolve("helloPromise!")},3000)
})

helloPromise.then((res)=>{
	console.log(res+"Promise is over!")
})
